package day02;

// 创建节点
class Node {
    private String val;
    private Node left;
    private Node right;

    public Node(String val) {
        this.val = val;
    }

    @Override
    public String toString() {
        return "Node{" +
                "val='" + val + '\'' +
                '}';
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public Node getLeft() {
        return left;
    }

    public void setLeft(Node left) {
        this.left = left;
    }

    public Node getRight() {
        return right;
    }

    public void setRight(Node right) {
        this.right = right;
    }
}
